-- here can functins be placed, which are only used to create monsters, items etc

gameFunction = {
 createBarrel = function()
		o = Barrel:new{hp = 1, movementSpeed = 0.1, team = 3, direction = math.random(1,8), center = {math.random(0, MAP_WIDTH - Barrel.width/2),math.random( 0, MAP_HEIGHT - Barrel.height)/2}, x = math.random(0, MAP_WIDTH - Barrel.width), y = math.random( 0, MAP_HEIGHT - Barrel.height),exp = 10}
		return o
end,

createChest = function()
	o =  Chest:new{name = "Chest" ,hp = 10, movementSpeed = 0.1, team = 2, direction = math.random(1,8), x = math.random(0, MAP_WIDTH - Chest.width), y = math.random( 0, MAP_HEIGHT - Chest.height),exp = 10}
	return o
end,

	createRedfish = function()
	o =  redfish:new{movementSpeed = 0.1, team = 3, direction = math.random(1,8), center = {math.random(0, MAP_WIDTH - redfish.width/2),math.random( 0, MAP_HEIGHT - redfish.height)/2},exp = 10}
		return o
	end,
	
	createGreenfish = function()
		o =  greenfish:new{name = "green fish", movementSpeed = 0.2, team = 2, direction = math.random(1,8), x = math.random(0, MAP_WIDTH - greenfish.width), y = math.random( 0, MAP_HEIGHT - greenfish.height),exp = 10}
		return o
	end,

	createTestfish = function()
		o =  testfish:new{name = "test fish", movementSpeed = 0.2, team = 2, direction = math.random(1,8), x = math.random(0, MAP_WIDTH - greenfish.width), y = math.random( 0, MAP_HEIGHT - greenfish.height),exp = 10}
		return o
	end,

	createNewHero = function()
			o = Hero:new{hp = 100, x = 100, y = 100, center = {500,500}, width = 24, height = 24, collisionCenter= {0,12}, offsetHeight = 0.7, movementSpeed = 5, attack = {meleRange = 5, meleDamage = 66}, team = 1, currentState = Hero.stateList.control}
	  --o.createInventory(10,10,1)
		return o
	end
}

